<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head id="head">
    <!--[if IE]>
    <!--<script type="text/javascript" src="http://fbug.googlecode.com/svn/lite/branches/firebug1.4/content/firebug-lite-dev.js"></script>-->
    <![endif]-->
    <title><?php if(isset ($title_for_layout)) echo $title_for_layout; ?></title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
        <link href='http://fonts.googleapis.com/css?family=Roboto:400,300italic,100,300' rel='stylesheet' type='text/css'>
    <?php

        echo load_css('style.css');
        echo load_css('iconsGrids/icons.css');
        echo load_cssjs('jplayer/blue.monday/jplayer.blue.monday.css');
        echo load_cssjs('bootstrap/css/bootstrap.css');
        echo load_cssjs('extjs4/resources/ext-theme-neptune/ext-theme-neptune-all.css');
        
        echo load_cssjs('jquery/ui/css/smoothness/jquery-ui-1.8.17.custom.css');
        echo load_cssjs('fullcalendar/fullcalendar.css');
        
//        echo load_cssjs('jquery/flexigrid/css/flexigrid.pack.css');
    ?>
    <script language="javascript">
        var BASE_URL = '<?php echo base_url(); ?>' + 'index.php/';
        var BASE_PATH = '<?php echo base_url(); ?>';
        var BASE_ICONS = BASE_PATH + 'images/icons/';
        
        var upf = "";
        var uploadFolder ="";
        var ckfinderPath = BASE_PATH + "js/ckfinder/ckfinder.html";
        <?php if(isset($user) && !empty($user['uploadfolder'])){?>
                uploadFolder = '<?php echo $user['uploadfolder'];?>';
        <?php }?>
        
        var _editorCFG = {
            height:100,
            width:'100%',
            basePath:ckfinderPath,
            imageType:uploadFolder,
            filebrowserBrowseUrl:ckfinderPath,
            filebrowserUploadUrl : ckfinderPath+'/core/connector/php/connector.php?command=QuickUpload'
        };
        
        function _getErrorFromArray(obj){
            var msj ='<ul>';
            for(i in obj){
                msj = msj+'<li>'+obj[i]+'</li>';
            }
            return msj+'</ul>';
        }
        
        
        
    </script>
<!--    <script language="javascript" src="<?php //echo base_url(); ?>js/jquery/jquery-1.6.1.min.js"></script>-->

    <?php
  //  echo load_javascript('rocket_framework/ui/js/jquery-1.7.1.min.js');
    echo load_javascript('onecore/dateformat.js');
    echo load_javascript('extjs4/ext-all.js');
    echo load_javascript('extjs4/locale/ext-lang-es.js');
    
    echo load_javascript('jquery/ui/js/jquery-1.7.1.min.js');
    echo load_javascript('jquery/ui/js/jquery-ui-1.8.18.custom.min.js');
    echo load_javascript('jquery/jquery.json-2.3.min.js');
    echo load_javascript('jquery/jquery.collapsible.js');
    
    echo load_javascript('bootstrap/js/bootstrap.js');

    echo load_javascript('jplayer/jquery.jplayer.min.js');
    
//    echo load_javascript('jquery/flexigrid/js/flexigrid.js');
    
    echo load_javascript('md5/md5-min.js');
    echo load_javascript('md5/sha1-min.js');
    echo load_javascript('ckeditor/ckeditor.js');
    echo load_javascript('ckfinder/ckfinder.js');
    echo load_javascript('fullcalendar/fullcalendar.js');
    

    ?>
    </script> 
</head>
<body>
    <div class="page">
        <?php echo $header; ?>
        <div class="d_main_layout">
            <?php echo $content_for_layout; ?>
        </div>
        <?php echo $footer; ?>
    </div>
</body>
</html>
